/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.proyectofinal.ramas.domain;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author nicolas
 */
@Entity
@Table(name = "Address")
public class Address implements Serializable {
    @Id
    @Column(name = "addressID")
    @GeneratedValue
    private Integer addressID;

    @Column(name = "street",length=50)
    private String street;
    
    @Column(name = "number")
    private Integer number;
    
    @Column(name = "rest",length=50)
    private String rest;
    
    @Column(name = "localityID")
    private Integer localityID;
    
    @Column(name = "loadDate")
    @Temporal(javax.persistence.TemporalType.TIMESTAMP)
    private Date loadDate;

    public Integer getAddressID() {
        return addressID;
    }

    public void setAddressID(Integer addressID) {
        this.addressID = addressID;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public String getRest() {
        return rest;
    }

    public void setRest(String rest) {
        this.rest = rest;
    }

    public Integer getLocalityID() {
        return localityID;
    }

    public void setLocalityID(Integer localityID) {
        this.localityID = localityID;
    }

    public Date getLoadDate() {
        return loadDate;
    }

    public void setLoadDate(Date loadDate) {
        this.loadDate = loadDate;
    }
    
}
